// src/components/Medical/StatusTag.jsx
import React from 'react';
import { Tag } from 'antd-mobile';

const StatusTag = ({ status }) => {
  const statusConfig = {
    pending: { text: '待处理', color: '#ff8f1f' },
    processing: { text: '进行中', color: '#1677ff' },
    completed: { text: '已完成', color: '#52c41a' },
    rejected: { text: '已拒绝', color: '#ff4d4f' }
  };

  const config = statusConfig[status] || statusConfig.pending;

  return (
    <Tag color={config.color}>
      {config.text}
    </Tag>
  );
};

export default StatusTag;